package com.bds.btcdc.adapter.service;


import com.bds.btcdc.api.model.Result;
import com.bds.btcdc.model.UserKeys;
import com.bds.btcdc.api.model.Order;

/**
 * @author: kevin
 * @date: 2018/5/3
 * @description: 交易接口
 */
public interface ITradeService {
    /**
     * 币币交易，下订单
     * @param order 下单信息
     * @return OrderResponse
     */
    public Result makeOrder(Order order);

    /**
     * 根据订单ID，撤销一个订单请求
     * @param userId
     * @param orderId 订单id
     * @return OrderResponse
     */
    public Result cancelOrder(long userId,  String orderId);

    /**
     * 根据订单ID，查询某个订单详情
     * @param userId
     * @param orderId 订单id
     * @return OrderInfo
     */
    public Result getOrder(long userId, String orderId);

    /**
     * 查询用户各个交易所的资产信息
     * @return AccountInfo
     */
    public Result getAccount(UserKeys keys);


}
